package com.echo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 课堂记录表
 * </p>
 *
 * @author echo
 * @since 2025-02-23
 */
@TableName("class_record")
public class ClassRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    /**
     * 关联课程ID
     */
    private Integer courseId;

    /**
     * 课堂日期
     */
    private LocalDate recordDate;

    /**
     * 课堂记录内容
     */
    private String recordContent;

    /**
     * 出勤人数
     */
    private Integer attendanceCount;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }
    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }
    public LocalDate getRecordDate() {
        return recordDate;
    }

    public void setRecordDate(LocalDate recordDate) {
        this.recordDate = recordDate;
    }
    public String getRecordContent() {
        return recordContent;
    }

    public void setRecordContent(String recordContent) {
        this.recordContent = recordContent;
    }
    public Integer getAttendanceCount() {
        return attendanceCount;
    }

    public void setAttendanceCount(Integer attendanceCount) {
        this.attendanceCount = attendanceCount;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ClassRecord{" +
            "recordId=" + recordId +
            ", courseId=" + courseId +
            ", recordDate=" + recordDate +
            ", recordContent=" + recordContent +
            ", attendanceCount=" + attendanceCount +
            ", createTime=" + createTime +
        "}";
    }
}
